import 'package:freezed_annotation/freezed_annotation.dart';

part 'my_location_request.g.dart';
part 'my_location_request.freezed.dart';

@freezed
class MyLocationRequest with _$MyLocationRequest {
  const factory MyLocationRequest({
    @JsonKey(name: 'lng') required String longitude,
    @JsonKey(name: 'lat') required String latitude,
    @JsonKey(name: 'token') required String token,
  }) = _MyLocationRequest;

  factory MyLocationRequest.fromJson(Map<String, dynamic> json) =>
      _$MyLocationRequestFromJson(json);
}
